package com.smz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smz.dao.TProductDAO;
import com.smz.entity.TProduct;
import com.smz.service.TProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TProductServiceImpl extends ServiceImpl<TProductDAO, TProduct> implements TProductService {

    @Autowired
    private TProductDAO tProductDAO;

    @Override
    public List<TProduct> findTProductBypName(String pName) {
        return tProductDAO.selectTProductBypName(pName);
    }
}
